import { createApp } from 'vue'
import App from './App.vue'
import Common from './components/Common.vue'

//elemnet-plus组件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//全局自定义样式
import './style.css'
//国际化i18n
import i18n from './lang/index'
//pinia
import pinia from "@/store";
//路由
import router from '@/router'


const app = createApp(App)// 创建vue实例

//全局组件
app.component('Common',Common)

//使用插件
app.use(pinia)// 挂载pinia
app.use(router)//挂在reouter
app.use(i18n)//国际化语言
app.use(ElementPlus)//ui库
app.mount('#app');// 挂载实例

